using FrameworkDesign;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BagUISlot : ItemViewController
{
    // Start is called before the first frame update
    public UISlot Slot;
    void Start()
    {
        var itemSystem = this.GetSystem<IItemSystme>();
        var constModel=this.GetModel<IConstModel>();
        foreach (var slot in itemSystem.SlotGroupDic[constModel.GetBagSlotGroupName].Slots)
        {
            var item=Instantiate(Slot,transform);
            item.InitUISlot(slot);
            item.gameObject.SetActive(true);
        }
    }


}
